package com.midcode;

import com.parser.program;


public class Label {
	public static int labelPtr=0;
	public static int stackPtr=0;
	public Label(){
		
		program.label=new String("L"+labelPtr);
		labelPtr++;
	}
	public static void push(String label){
		program.labelStack.add(label);
		stackPtr++;
	}
	public static String pop(){
		
		String a = program.labelStack.get(--stackPtr);
		program.labelStack.remove(stackPtr);
		return a;
	}
}
